#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	string s; cin >> s;
	ll ans = 0;
	for (int i = 0; i < s.size(); i++) {
		if (s.substr(i, 7) == "Genshin") {
			for (int j = i; j < s.size(); j++) {
				if (s.substr(j, 6) == "player") ans++;
			}
		}
	}
	cout << ans << endl;
	return 0;
}
